﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BatchTransfer.aspx.cs" Inherits="WMS6.Web.Inventory.BatchTransfer" meta:resourcekey="Page" %>
<%@ PreviousPageType VirtualPath="~/Inventory/BatchTransferQuery.aspx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>BatchTransfer</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
       //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {              
                document.getElementById("txtToOwnerID").value = rtnValue;
            }
        }
        function Setindex(Index)
        {
           document.getElementById('hdnIndex').value=Index;
        }
        
        function SetGridView()
        {
          var Gv =document.getElementById('gvTransferDetail');
            
            for(var i=1;Gv.rows.length>i;i++)
            {
              if(Gv.rows(i).cells[1].getElementsByTagName("input")[0].checked )
              {
               Gv.rows(i).cells[document.getElementById('hdnIndex').value].childNodes[0].value = document.getElementById('txtReplace').value;
              }
            }
        }
    </script>

</head>
<body>
    <form id="F5069" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <%--<asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>--%>
                <div id="div_top">
                    <table>
                        <tr>
                            <td valign="bottom">
                                <asp:Label ID="lblBatchTransfer" runat="server" CssClass="label_header" Text="批量转移" 
                                    meta:resourcekey="lblBatchTransfer"></asp:Label>
                            </td>
                            <td>
                                <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnGoBack%>"
                                    AccessKey="b" OnClick="btnGoBack_Click"  />
                            </td>
                            <td>
                                <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnSave%>"
                                    OnClick="btnSave_Click" AccessKey="s"  />
                            </td>
                            <td>
                                <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnRefresh%>"
                                    AccessKey="e" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg" ></asp:Label>
                </div>
                <div id="div_menu">
                    <div style="float: left; width: 8px;">
                        <div class="tabL" id="divL1">
                        </div>
                    </div>
                    <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                        id="divM1">
                        <asp:Label ID="one1" CssClass="hover" runat="server" 
                            meta:resourcekey="one1">常规</asp:Label></div>
                    <div style="float: left; margin-right: 2px;">
                        <div class="tabR" id="divR1">
                        </div>
                    </div>                  
                </div>
        <div id="div_content" style="width: 2600px">
            <div id="con_one_1" style="display: block; overflow: hidden;">
                <table>
                    <tr>
                        <td>
                            <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                                <tr>
                                    <td width="180">
                                        <asp:Label ID="lblTransFerID" runat="server" CssClass="label" Text="库存转移单号" meta:resourcekey="lblTransFerID"></asp:Label>
                                    </td>
                                    <td width="180">
                                        <asp:Label ID="lblToOwnerID" runat="server" CssClass="label" Text="至货主代码" meta:resourcekey="lblToOwnerID"></asp:Label><font
                                            class="must_input">*</font>
                                    </td>
                                    <td width="180">
                                        <asp:Label ID="lblTransferDate" runat="server" CssClass="label" Text="转移日期" meta:resourcekey="lblTransferDate"></asp:Label><font
                                            class="must_input">*</font>
                                    </td>
                                    <td width="180">
                                        <asp:Label ID="lblTransType" runat="server" CssClass="label" Text="类型" meta:resourcekey="lblTransType"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="180">
                                        <asp:TextBox ID="txtTransFerID" runat="server" CssClass="textbox"></asp:TextBox>
                                    </td>
                                    <td width="180">
                                        <asp:TextBox ID="txtToOwnerID" runat="server" CssClass="textbox"></asp:TextBox><img
                                            src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner();"
                                            id="img" runat="server" />
                                    </td>
                                    <td width="180">
                                        <asp:TextBox ID="txtTransferDate" runat="server" CssClass="textbox"></asp:TextBox>
                                        <img src="../Images/calendar.gif" class="img" alt="请选择日期" id="imgTime" runat="server"
                                            onclick="setday(this,txtTransferDate)" />
                                    </td>
                                    <td width="180">
                                        <asp:DropDownList ID="ddlTransferType" runat="server" CssClass="mediumselectbox"
                                            meta:resourcekey="ddlTransferType">
                                        </asp:DropDownList>
                                    </td>
                                </tr>
                                <tr style="height: 10px;">
                                    <td width="180">
                                    </td>
                                    <td width="180">
                                    </td>
                                    <td width="180">
                                    </td>
                                    <td width="180">
                                    </td>
                                </tr>
                                <tr>
                                    <td width="180">
                                    </td>
                                    <td width="180">
                                        <asp:TextBox ID="txtReplace" runat="server" CssClass="textbox"></asp:TextBox>
                                    </td>
                                    <td width="100">
                                        <asp:Button ID="btnReplace" runat="server" Enabled="false" CssClass="button" OnClientClick="SetGridView(); return false;"
                                            Text="替换" AccessKey="e" meta:resourcekey="btnReplace" />
                                    </td>
                                    <td width="180">
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height:10px;">
                        <td></td>
                    </tr>
                    <tr>
                        <td style="padding-left:10px;">
                            <asp:GridView ID="gvTransferDetail" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                                AllowPaging="True" CssClass="gridview" OnRowDataBound="gvTransferDetail_RowDataBound" oninit="gvTransferDetail_Init" 
                                PageSize="100000" Width="3000px" OnSorting="gvTransferDetail_Sorting" DataKeyNames="OWNER_ID,SKU_ID,LOC,LOT,LPN_ID,PACK_ID,UOM_ID,Qty,EXTERNAL_LOT,RECEIPT_DATE,VENDOR_ID,LOT_ATTR01,LOT_ATTR02,LOT_ATTR03,LOT_ATTR04,LOT_ATTR05,LOT_ATTR06,LOT_ATTR07,LOT_ATTR08,LOT_ATTR09,LOT_ATTR10,PRODUCE_DATE,EXPIRY_DATE"
                                meta:resourcekey="gvTransferDetail">
                                <FooterStyle CssClass="GridViewFooterStyle" />
                                <RowStyle CssClass="GridViewRowStyle" />
                                <PagerStyle CssClass="GridViewPageStyle" />
                                <HeaderStyle CssClass="GridViewHeaderStyle" />
                                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                <Columns>
                                    <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                        <ItemStyle CssClass="GridViewRowWidth_40" />
                                    </asp:BoundField>
                                  <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                    <HeaderTemplate>
                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('5069','gvTransferDetail');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                        <asp:CheckBox ID="CheckBox1" runat="server" 
                                            onclick="selectAll(this,'gvTransferDetail');" meta:resourcekey="CheckBox1Resource1" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chbSelect" runat="server" 
                                            meta:resourcekey="chbSelectResource1" />
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:CheckBox ID="CheckBox2" runat="server" 
                                            onclick="selectAll(this,'gvTransferDetail');" meta:resourcekey="CheckBox2Resource1" />
                                    </FooterTemplate>
                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                </asp:TemplateField>   
                                 
                                    <asp:TemplateField FooterText="货品代码" HeaderText="货品代码" SortExpression="SkuID">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnSku" runat="server" GroupName="Trans" Text="货品代码" meta:resourcekey="rbtnSkuID" /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtSkuID" Width="100px" CssClass="textbox" runat="server" ToolTip='<%# Eval("SKU_ID") %>'
                                                Text='<%# Eval("SKU_ID") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="货位" HeaderText="货位" SortExpression="Loc">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLoc" runat="server" GroupName="Trans" Text="货位" meta:resourcekey="rbtnLoc"  /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLoc" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOC") %>'
                                                Text='<%# Eval("LOC") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批号" HeaderText="批号" SortExpression="Lot">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLot" runat="server" GroupName="Trans" Text="批号" meta:resourcekey="rbtnLot"  /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLot" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT") %>'
                                                Text='<%# Eval("LOT") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="LPN" HeaderText="LPN">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLpn" runat="server" GroupName="Trans" Text="LPN"  meta:resourcekey="rbtnLPN" /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLpn" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LPN_ID") %>'
                                                Text='<%# Eval("LPN_ID") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="包装" HeaderText="包装" SortExpression="PackID">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnPackID" runat="server" GroupName="Trans" Text="包装"  meta:resourcekey="rbtnPackID" /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtPackID" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("PACK_ID") %>'
                                                Text='<%# Eval("PACK_ID") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="计量单位" HeaderText="计量单位" SortExpression="UomID">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnUomID" runat="server" GroupName="Trans" Text="计量单位" meta:resourcekey="rbtnUomID" /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtUomID" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("UOM_ID") %>'
                                                Text='<%# Eval("UOM_ID") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="数量" HeaderText="数量" SortExpression="Qty">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnQty" runat="server" Width="100px" GroupName="Trans" Text="数量" meta:resourcekey="rbtnQty"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtQty" runat="server" Text='<%# GetPreferenceDigit(Eval("Qty").ToString()) %>'
                                                ToolTip='<%# Eval("Qty") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="外部批号" HeaderText="外部批号" SortExpression="ExternalLot">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnExternalLot" runat="server" GroupName="Trans" Text="外部批号" meta:resourcekey="rbtnExternalLot"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtExternalLot" runat="server" Width="100px" CssClass="textbox"
                                                ToolTip='<%# Eval("EXTERNAL_LOT") %>' Text='<%# Eval("EXTERNAL_LOT") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" SortExpression="ReceiptDate">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnReceiptDate" runat="server" GroupName="Trans" Text="入库日期" meta:resourcekey="rbtnReceiptDate"
                                               /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtReceiptDate" runat="server" Width="100px" CssClass="textbox"
                                                ToolTip='<%# GetPreferenceShortDate(Eval("RECEIPT_DATE").ToString()) %>' Text='<%# GetPreferenceShortDate(Eval("RECEIPT_DATE").ToString()) %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="供应商代码" HeaderText="供应商代码" SortExpression="VendorID">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnVendorID" runat="server" GroupName="Trans" Text="供应商代码" meta:resourcekey="rbtnVendorID"  /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtVendorID" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("VENDOR_ID") %>'
                                                Text='<%# Eval("VENDOR_ID") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性01" HeaderText="批属性01" SortExpression="LotAttr01">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr01" runat="server" GroupName="Trans" Text="批属性01" meta:resourcekey="rbtnLotAttr01"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotAttr01" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR01") %>'
                                                Text='<%# Eval("LOT_ATTR01") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性02" HeaderText="批属性02" SortExpression="LotAttr02">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr02" runat="server" GroupName="Trans" Text="批属性02" meta:resourcekey="rbtnLotAttr02"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotattr02" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR02") %>'
                                                Text='<%# Eval("LOT_ATTR02") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性03" HeaderText="批属性03" SortExpression="LotAttr03">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr03" runat="server" GroupName="Trans" Text="批属性03" meta:resourcekey="rbtnLotAttr03"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotAttr03" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR03") %>'
                                                Text='<%# Eval("LOT_ATTR03") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性04" HeaderText="批属性04" SortExpression="LotAttr04">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr04" runat="server" GroupName="Trans" Text="批属性04" meta:resourcekey="rbtnLotAttr04"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotAttr04" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR04") %>'
                                                Text='<%# Eval("LOT_ATTR04") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性05" HeaderText="批属性05" SortExpression="LotAttr05">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr05" runat="server" GroupName="Trans" Text="批属性05" meta:resourcekey="rbtnLotAttr05"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotAttr05" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR05") %>'
                                                Text='<%# Eval("LOT_ATTR05") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性06" HeaderText="批属性06" SortExpression="LotAttr06">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr06" runat="server" GroupName="Trans" Text="批属性06" meta:resourcekey="rbtnLotAttr06"
                                                 /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotAttr06" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR06") %>'
                                                Text='<%# Eval("LOT_ATTR06") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性07" HeaderText="批属性07" SortExpression="LotAttr07">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr07" runat="server" GroupName="Trans" Text="批属性07" meta:resourcekey="rbtnLotAttr07"
                                               /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotAttr07" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR07") %>'
                                                Text='<%# Eval("LOT_ATTR07") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性08" HeaderText="批属性08" SortExpression="LotAttr08">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr08" runat="server" GroupName="Trans" Text="批属性08" meta:resourcekey="rbtnLotAttr08"
                                                 /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotAttr08" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR08") %>'
                                                Text='<%# Eval("LOT_ATTR08") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性09" HeaderText="批属性09" SortExpression="LotAttr09">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr09" runat="server" GroupName="Trans" Text="批属性09" meta:resourcekey="rbtnLotAttr09"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotAttr09" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR09") %>'
                                                Text='<%# Eval("LOT_ATTR09") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="批属性10" HeaderText="批属性10" SortExpression="LotAttr10">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnLotAttr10" runat="server" GroupName="Trans" Text="批属性10" meta:resourcekey="rbtnLotAttr10"
                                               /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtLotAttr10" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# Eval("LOT_ATTR10") %>'
                                                Text='<%# Eval("LOT_ATTR10") %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" SortExpression="ProduceDate">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnProduceDate" runat="server" GroupName="Trans" Text="生产日期" meta:resourcekey="rbtnProduceDate"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtProduceDate" runat="server" Width="100px" CssClass="textbox"
                                                ToolTip='<%# GetPreferenceShortDate(Eval("PRODUCE_DATE").ToString()) %>' Text='<%# GetPreferenceShortDate(Eval("PRODUCE_DATE").ToString()) %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                    <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" SortExpression="ExpiryDate">
                                        <HeaderTemplate>
                                            <asp:RadioButton ID="rbtnExpiryDate" runat="server" GroupName="Trans" Text="失效日期" meta:resourcekey="rbtnExpiryDate"
                                                /></HeaderTemplate>
                                        <ItemTemplate>
                                            <asp:TextBox ID="txtExpiryDate" runat="server" Width="100px" CssClass="textbox" ToolTip='<%# GetPreferenceShortDate(Eval("EXPIRY_DATE").ToString()) %>'
                                                Text='<%# GetPreferenceShortDate(Eval("EXPIRY_DATE").ToString()) %>'></asp:TextBox>
                                        </ItemTemplate>
                                        <ItemStyle CssClass="GridViewRowWidth_100" />
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
                <input type="hidden" id="hdnActionID" runat="server" />
                <input id="hdnFrom" runat="server" type="hidden" />
                <input id="hdnFromOwner" runat="server" type="hidden" />
                <input id="hdnFlag" runat="server" type="hidden" />
                <input id="hdnIndex" runat="server" type="hidden" />
                               
            <%--</ContentTemplate>
        </asp:UpdatePanel>--%>
    </div>
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>